package com.xiaozhen.alarm.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaozhen.common.core.domain.BaseEntity;
import com.xiaozhen.common.core.domain.system.SysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 告警信息处置策略
 *
 * @author zhenweisheng
 * @date 2021/10/15 9:28
 * @description:
 */
@Data
@TableName("alarm_strategy")
@ApiModel(description = "告警信息处置策略的表")
public class AlarmStrategy extends BaseEntity {

    @TableId
    @ApiModelProperty(value = "策略ID")
    private Long strategyId;

    @ApiModelProperty(value = "策略名称")
    private String strategyName;

    /**
     * 通知1 告警2 紧急3
     */
    @ApiModelProperty(value = "告警等级")
    private String alarmLevel;

    @ApiModelProperty(value = "警报消息")
    private String alarmMessage;

    @ApiModelProperty(value = "通知方式(email,sms)")
    private String notifyMethod;

    @TableField(exist = false)
    @ApiModelProperty(value = "通知人")
    private List<Long> notifyUserIds;

    @TableField(exist = false)
    @ApiModelProperty(value = "通知人列表")
    private List<SysUser> notifyUsers;

}
